import request from '../utils/request'

const ADMIN = "/admin/"
//请求所有轮播图
export function reqAllSwiper() {
    return request.get(ADMIN + "getAllSwiper")
}
//增加轮播图
export function reqAddOne(data: object) {
    return request((ADMIN + "addSwiper"), {
        method: "POST",
        data
    })
}
//删除轮播图
export function reqDelOne(data: object) {
    return request.get(ADMIN + "deleteSwiper", data)
}
//修改轮播图
export function reqChangeOne(data: object) {
    return request((ADMIN + "updateSwiper"), {
        method: "POST",
        data
    })
}